<template>
  <div class="login_info border-b border-[#ffffff1a]">
    <div class="mb-[1.2vh] flex items-center">
      <strong class="text-[2vh] font-bold">欢迎您，{{ user.userName }}</strong>
      <span
        class="ml-[1.2vh] h-[1.7vh] bg-[#3C6BA8] px-[1.2vh] text-[1.2vh] leading-[1.7vh]"
        >{{ user.user.remark }}</span
      >
    </div>
    <span class="text-[1.2vh] text-base"
      >上次登录时间：{{
        dayjs(user.user.loginDate).format('YYYY-MM-DD HH:mm:ss')
      }}</span
    >
  </div>
</template>

<script setup lang="tsx">
import { useUserStore } from '@boeyo/portal';
import dayjs from 'dayjs';

const user: any = useUserStore();
</script>
